<!--
 * @Descripttion: 
 * @version: 
 * @Author: hhy
 * @Date: 2020-12-21 09:31:24
 * @LastEditors: hhy
 * @LastEditTime: 2020-12-21 10:26:29
 * @FilePath: \votemp-user-pc\src\views\lpoll\404.vue
-->
<template>
  <div class="not-found">
    <div class="box flex-c">
      <div class="img">
        <img src="@/assets/404.png" alt="" />
      </div>
      <div class="text">
        <p class="title">您访问的页面丢失了</p>
        <div class="tip">
          <div class="rise">您可以：</div>
          <div class="tip-a">
            <p><span></span>检查网络连接</p>
            <p><span></span>检查访问地址是否正确</p>
            <p><span></span>返回网站首页</p>
          </div>
        </div>
        <div class="button" @click="toIndex">返回首页</div>
      </div>
    </div>
  </div>
</template>
<script>
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
export default defineComponent({
  name: '404',
  setup() {
    const router = useRouter();
    const toIndex = () => {
      router.push({
        path: '/user',
      });
    };
    return {
      toIndex,
    };
  },
});
</script>
<style lang="scss" scoped>
.not-found {
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  .box {
    .img {
      img {
        width: 500px;
      }
    }
    .text {
      text-align: left;
      padding-left: 60px;
      .title {
        color: #141414;
        font-size: 20px;
        font-weight: 500;
        line-height: 34px;
      }
      .tip {
        padding-top: 15px;
        display: flex;
        color: #8b94a3;
        font-size: 16px;
        p {
          margin-bottom: 10px;
        }
        span {
          display: inline-block;
          width: 8px;
          height: 8px;
          background: #0078ff;
          border-radius: 50%;
          opacity: 1;
          position: relative;
          top: -2px;
          margin-right: 8px;
        }
      }
      .button {
        margin-top: 30px;
        width: 150px;
        height: 50px;
        background: #0078ff;
        opacity: 1;
        border-radius: 4px;
        color: #ffffff;
        text-align: center;
        line-height: 50px;
        font-size: 20px;
        cursor: pointer;
      }
    }
  }
}
</style>
